package com.design.command;

import com.design.command.player.Controller;
import com.design.command.player.GPlayer;
import com.design.command.player.action.PauseAction;
import com.design.command.player.action.PlayAction;
import com.design.command.player.action.SpeedAction;
import com.design.command.player.action.StopAction;

public class Test {

    public static void main(String[] args) {
        GPlayer player= new GPlayer();
        Controller controller =new Controller();
        controller.execute(new PlayAction(player));

        controller.addAction(new PauseAction(player));
        controller.addAction(new PlayAction(player));
        controller.addAction(new StopAction(player));
        controller.addAction(new SpeedAction(player));
        controller.exectues();
    }
}
